import Layout from '@/layout'
import EmptyLayout from '@/layout/empty'

export default {
    path: '/ArticleManager',
    component: Layout,
    redirect: '/ArticleManager/list',
    name: 'ArticleManager',
    meta: {
        title: '文章管理',
        icon: 'sidebar-articles'
    },
    children: [
        {
            path: 'list',
            name: 'ArticleManagerList',
            component: EmptyLayout,
            redirect: '/ArticleManager/list',
            meta: {
                title: '文章列表'
            },
            children: [
                {
                    path: '',
                    component: () =>
                        import(
                            /* webpackChunkName: 'ArticleManager' */ '@/views/ArticleManager/list'
                        ),
                    meta: {
                        title: '文章列表',
                        sidebar: false,
                        breadcrumb: false
                    }
                },
                {
                    path: 'edit',
                    name: 'ArticleManagerEdit',
                    component: () =>
                        import(
                            /* webpackChunkName: 'ArticleManager' */ '@/views/ArticleManager/edit'
                        ),
                    meta: {
                        title: '文章编辑',
                        sidebar: false,
                        activeMenu: '/ArticleManager/list'
                    }
                },
                {
                    path: 'detail',
                    name: 'ArticleManagerDetail',
                    component: () =>
                        import(
                            /* webpackChunkName: 'ArticleManager' */ '@/views/ArticleManager/detail'
                        ),
                    meta: {
                        title: '文章详情',
                        sidebar: false,
                        activeMenu: '/ArticleManager/list'
                    }
                }
            ]
        },
        {
            path: 'publish',
            name: 'ArticleManagerPublish',
            component: () =>
                import(
                    /* webpackChunkName: 'ArticleManager' */ '@/views/ArticleManager/publish'
                ),
            meta: {
                title: '发表文章'
            }
        },
        {
            path: 'category',
            name: 'ArticleManagerCategory',
            component: () =>
                import(
                    /* webpackChunkName: 'ArticleManager' */ '@/views/ArticleManager/category'
                ),
            meta: {
                title: '文章类别'
            }
        }
    ]
}
